<template>
    <div id="box1">
      <el-input
        id="bigbox"
        type="textarea"
        :rows="10"
        placeholder="请输入你的建议"
        v-model="textarea"
      >
      </el-input>
  
      <el-button
        style="margin-left: 10px"
        size="small"
        type="success"
        @click="submitUpload"
        >提交</el-button
      >
    </div>
  </template>
  
  <script>
  import axios from "axios";
  export default {
    data() {
      return {
        textarea: "",
        chapterList:""
      };
    },
    methods: {
      submitUpload() {
        console.log(this.textarea);
        axios.post("http://localhost:3000/selectlogs",{textarea:this.textarea}).then((res) => {
          console.log(res);
          let result = res.data;
          this.chapterList = result;
        });
      },
    },
    //mounted(){
    //  this.submitUpload();
    //}
  };
  </script>